package com.ruoyi.task.domain;

import java.util.List;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 场景参数管理对象 scene_params_info
 *
 * @author admin
 * @date 2025-08-20
 */
@Data
public class SceneParamsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 场景编号 */
    @Excel(name = "场景编号", dictType= "task_scenarios_type")
    private String scenariosType;

    /** 场景名称 */
    @Excel(name = "场景名称")
    private String scenariosName;

    /** 统计样本量 */
    @Excel(name = "统计样本量")
    private Long detFrameNum;

    /** 最少样本阈值 */
    @Excel(name = "最少样本阈值")
    private Long minCountQuantity;

    /** 是否保存检查帧（0不保存 1保存） */
    @Excel(name = "是否保存检查帧", readConverterExp = "0=不保存,1=保存")
    private String saveCheckFrame;

    /** 异常样本量阈值 */
    @Excel(name = "异常样本量阈值")
    private Long exceptionCountQuantity;

    /** 大模型参数 */
    @Excel(name = "大模型参数")
    private String modelParams;

    /** 通用配置 */
    @Excel(name = "通用配置")
    private String commonConfig;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 搜索场景编号
     */
    private List<String> scenariosTypeList;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("scenariosType", getScenariosType())
                .append("scenariosName", getScenariosName())
                .append("detFrameNum", getDetFrameNum())
                .append("minCountQuantity", getMinCountQuantity())
                .append("saveCheckFrame", getSaveCheckFrame())
                .append("exceptionCountQuantity", getExceptionCountQuantity())
                .append("modelParams", getModelParams())
                .append("commonConfig", getCommonConfig())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
